﻿using System;
using System.Collections.Generic;
using NTTDATA.BEENChina.ResultCertification.PropertyGridUtil; 
using NTTDATA.BEENChina.ResultCertification.Config;
using System.ComponentModel;
using NTTDATA.BEENChina.ResultCertification.PropertyGridUtil.CustomObject;

namespace NTTDATA.BEENChina.ResultCertification.Checker.Select
{
    [Serializable]
    [VerfityAttribute(Id = "VerfityS0301", Name = "各工程误录入检证", CategoryType = EnumCategoryType.选择, Model = true)]  
    public class VerfityS0301 : VerfityMulitResult
    {
        private CustomCollection<CheckPair> _checkList = new CustomCollection<CheckPair>();

        [Category("检查项目对照表"), Description("输入检查项目对照项目")]
        [TypeConverter(typeof(CustomCollectionConverter<CheckPair>))]
        [RefreshProperties(RefreshProperties.All)]
        public CustomCollection<CheckPair> CheckList
        {
            get { return _checkList; }
            //set { _checkList = value; }
        }

        public override bool CheckResult(List<List<string>> result1, string entryCommon1, List<List<string>> result2, string entryCommon2)
        {
            return new Verfity0301(CheckList).CheckResult(result1, entryCommon1, result2, entryCommon2);
        }
    }
}
